package net.mukia.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "R_CONTENT")
public class Content extends BaseBean {

	private static final long serialVersionUID = 1L;
	@Id
	private Long id;
	@Column
	private String content;
	
	@ManyToOne
	@JoinColumn(name = "CHAPTER_ID")
	private Chapter chapter;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Chapter getChapter() {
		return chapter;
	}

	public void setChapter(Chapter chapter) {
		this.chapter = chapter;
	}
	

}
